package com.sk.mapper;
import java.util.List;
import java.util.Map;

import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sk.pojo.SUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
* @author 韩冰
* @description 针对表【s_user】的数据库操作Mapper
* @createDate 2022-05-31 15:52:01
* @Entity com.sk.pojo.SUser
*/
@Repository
@Mapper
public interface SUserMapper extends BaseMapper<SUser> {

    Integer getIdByUsername(@Param("username")String username);

    Map<String,Object> getAllById(int id);

    Map<String,Object> getAllByUsernameAndPwd(Map<String,Object> map);

    List<Map<String,Object>> likeByTelAndUsername(Map<String,Object> map);

    int deleteById(int id);

    int updateAdmin(Map<String, Object> map);

    int getRoleIdById(int uid);


    int addUser(Map<String ,Object> map);
    int addRoleId(Map<String ,Object> map);

}




